using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ExamServer.Models
{
    public class MenusModel
    {
        [Display(Name="菜单编号")]
        [Required]
        public int Id { get; set; }
        [Display(Name="菜单名称")]
        [Required]
        public string name { get; set; }
        [Display(Name="菜单图标")]
        public string icon { get; set; }="";
        [Display(Name="菜单路径")]
        public string url { get; set; }="";
        [Display(Name="父级菜单编号,一级菜单为0")]
        [Required]
        public int Pid { get; set; }
        ///所有子集菜单
        public IEnumerable<MenusModel> children{get;set;}
    }
}